package com.webserver.vo;

import java.io.Serializable;

/**
* vo:value Object 值对象
 * 这样的对象用于保存一组值，没有什么业务逻辑
* */
public class User implements Serializable {
    private String uname;
    private String upwd;
    private String nickname;
    private int age;

    public User(String uname, String upwd, String nickname, int age) {
        this.uname = uname;
        this.upwd = upwd;
        this.nickname = nickname;
        this.age = age;
    }


    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPassword() {
        return upwd;
    }

    public void setPassword(String password) {
        this.upwd = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "uname='" + uname + '\'' +
                ", password='" + upwd + '\'' +
                ", nickname='" + nickname + '\'' +
                ", age=" + age +
                '}';
    }
}
